package exception;

public class TryCatchFinallyDemo02 {
    public static void main(String[] args) {
        Integer a = null;
        int b = 0;
        int c = -1;

        try {
            int d = a.intValue();
            c = a/d;
        }catch (ArithmeticException | NullPointerException e){
            c++;
        }finally {
            c++;
        }
        System.out.println(c);

    }
}
